<?php

namespace app\index\controller;

use Sessions;
use think\Controller;
use Config;

class Facade extends Controller
{

    /**
     * User : 咔咔
     * Notes:
     * Time :2020/10/19 21:49
     * @route('test123');
     */
    public function getTest()
    {
        $test = new \app\facade\Test();
        $test::lala();
    }

    /**
     * User : 咔咔
     * Notes: 源码解析
     * Time :2020/10/19 20:23
     * @route('facadeSourceCodeAnalysis');
     */
    public function sourceCodeAnalysis()
    {
        $data = Config::get('facade.');
        dump($data);die;
    }

    /**
     * User : 咔咔
     * Notes: 测试获取用户信息
     * Time :2020/10/19 18:59
     * @route('getUserInfo');
     */
    public function getUserInfo()
    {
        // $session = new Sessions();
        // $session->setUserInfo();
        // dump($session->getUserInfo());die;
        Sessions::setUserInfo();
        dump(Sessions::getUserInfo());die;
    }

    /**
     * User : 咔咔
     * Notes: 测试容器
     * Time :2020/10/19 13:51
     * @route('testFacade');
     */
    public function testFacade()
    {
        $data = Config::get('app.');
        dump($data);die;
    }

}
